<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="views.Game" %>
<%@ page import="java.util.List" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Accueil</title>
  </head>

  <body>
  <jsp:include page="header.jsp"></jsp:include>
    <table>
    	<tr><th>Home</th><th>Away</th><th>Venue</th><th>Scheduled</th></tr>
    	<% for(Game g : (List<Game>) request.getAttribute("games")){ %>
    	<tr><td><%= g.getHome() %></td><td><%= g.getAway() %></td><td><%= g.getVenue() %></td><td><%= g.getScheduled() %></td></tr>
    	<% } %>
    </table>
  </body>
</html>
